package org.truenewx.tnxjeex.unit.model;

import javax.measure.quantity.ElectricInductance;

import org.truenewx.tnxjee.core.caption.Caption;
import org.truenewx.tnxjee.core.enums.annotation.SimpleEnumType;
import org.truenewx.tnxjeex.unit.support.MeasureUnits;
import org.truenewx.tnxjeex.unit.util.UnitTypes;
import tech.units.indriya.unit.Units;

@Caption("电感单位")
@SimpleEnumType(name = UnitTypes.ELECTRIC_INDUCTANCE)
public interface ElectricInductanceUnit extends MeasureUnit<ElectricInductance> {

    @Caption("亨")
    ElectricInductanceUnit HENRY = MeasureUnits.getInstance()
            .add(Units.HENRY, ElectricInductanceUnit.class, null, "HENRY", "EIH");

    @Caption("毫亨")
    ElectricInductanceUnit MILLI_HENRY = MeasureUnits.getInstance()
            .divide(HENRY, 1000, "mH", "MILLI_HENRY", "EIMH");

    @Caption("微亨")
    ElectricInductanceUnit MICRO_HENRY = MeasureUnits.getInstance()
            .divide(MILLI_HENRY, 1000, "µH", "MICRO_HENRY", "EIUH");
    @Caption("纳亨")
    ElectricInductanceUnit NANO_HENRY = MeasureUnits.getInstance()
            .divide(MICRO_HENRY, 1000, "nH", "NANO_HENRY", "EINH");

}
